package definition;
/**
 * 自定义枚举
 * @author fidel
 */
public enum CustomEnum {
    // 自定义字段1
    FIELD_1(1, 'a'),
    // 自定义字段2
    FIELD_2('2',"b", 0);

    private int x;
    private char y;
    private String z;

    private CustomEnum(int x, char y) {
        this.x = x;
        this.y = y;
    }

    private CustomEnum(char x, String y, int z) {
        this.y = x;
        this.z = y;
        this.x = z;
    }

    public int getX() {
        return x;
    }

    public char getY() {
        return y;
    }

    public String getZ() {
        return z;
    }
}
